import Layout from '@/views/layout.vue'
import Home from '@/views/secondes/home.vue'
import LookFor from '@/views/secondes/lookFor.vue'
import Information from '@/views/secondes/information.vue'
import Mine from '@/views/secondes/mine.vue'

import Login from '@/views/login.vue'
import Register from '@/views/register.vue'
import XiangQing from '@/views/xiangqing.vue'
import ShouChang from '@/views/shouchang.vue'
import Fangyuan from '@/views/fangyuan.vue'
import List from "@/views/list.vue"

const routes = [
  {
    path: '/',
    component: Layout,
    redirect: '/home',
    children: [
      {
        path: 'home',
        component: Home
      },
      {
        path: 'lookFor',
        component: LookFor
      },
      {
        path: 'information',
        component: Information
      },
      {
        path: 'mine',
        component: Mine
      }
    ]
  },
  {
    path: '/login',
    component: Login
  },
  {
    path: '/register',
    component: Register
  },
  {
    path: '/xiangqing',
    component: XiangQing
  },
  {
    path: '/shouchang',
    component: ShouChang
  },
  {
    path: '/fangyuan',
    component: Fangyuan
  },
  {
    path: '/list',
    component: List
  }
]
export default routes
